<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSettingConfigsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('setting_configs', function (Blueprint $table) {
            $table->charset = "utf8";
            $table->collation = "utf8_general_ci";
            $table->comment = "系统的全局配置信息";
            $table->increments('id');
            $table->unsignedInteger("home_image_time")->default(5)->comment("首页的轮播图的轮播时间");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('setting_configs');
    }
}
